package org.summer.lawyer.domain.vo.banner;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.summer.lawyer.domain.Banner;

import java.io.Serial;
import java.io.Serializable;

/**
 *
 */
@Data
@AutoMapper(target = Banner.class)
public class BannerCreateVo implements Serializable {


    @Serial
    private static final long serialVersionUID = 192432893933751652L;

    /**
     * 标题
     */
    private String title;

    /**
     * 类型(Home首页）
     */
    private String bannerType;

    /**
     * 图片地址
     */
    @NotBlank(message = "图片地址不能为空")
    private String imgUrl;

    /**
     * 跳转地址
     */
    private String targetUrl;

    /**
     * 显示顺序
     */
    @NotNull(message = "显示顺序不能为空")
    private Integer displaySort;

}
